<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>权限浏览</title>
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/css/public.css">
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/sorttable.js"></script>
		<script language="JavaScript"
			src="${pageContext.request.contextPath}/js/public.js"></script>
		<script language="JavaScript"
			src="${pageContext.request.contextPath}/js/validate.js"></script>
		<script language="JavaScript"
			src="${pageContext.request.contextPath}/js/baseset.js"></script>
		<script language="JavaScript"
			src="${pageContext.request.contextPath}/js/checkboxSelect.js"></script>
		<script type="text/javascript">		
		function downloadLog(){
			if (confirm("确认要引出当前信息吗？")) {	
				var formname = document.getElementById("functionTypeForm");//form的ID			
				formname.action = "downloadPurviewView.action?functionTypeId=<s:property value="#request.functionTypeId" />&&moduleName=<s:property value="#request.moduleName" />";
				formname.submit();
			}
		}
		</script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				系统管理
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
		
			<s:form name="functionTypeForm" theme="simple"
				cssStyle="margin-top:0px" id="functionTypeForm">
				<div id="btn">
					<input type="button" value="引出" onClick="downloadLog()"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="返回" onclick="history.go(-1)"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					
				</div>
				

				<div id="info_main">
					<!-- 查询栏 -->
					<div id="select">
							<hr>
							<table>
								<tr>
									<td>
										业务组&nbsp;
									</td>
									<td>
										<s:property value="#request.moduleName" />
										&nbsp;&nbsp;&nbsp;
									</td>
									<td>
										&nbsp;
									</td>
									<td>
										
									</td>
								</tr>
							</table>
						</div>
					<!-- 信息显示栏 -->
					<div id="info_infoShort" style="margin-top: 0px;" >

						<div id="info_info_x">
							<table id="info_table" width="520px" height="1000px" cellspacing=1px
								cellpadding=1px class="sortable">
								<thead align="center">
									<tr>
										<th width="100px">
											权限类型
										</th>
										<th width="200px">
											权限名称
										</th>
										<th width="100px">
											详细描述
										</th>
										<th width="100px">
											用户组名
										</th>
									</tr>
								</thead>
								<tbody align="center">
									<s:iterator value="#request.functionList">
										<tr>
											<td>
												<s:property value="functionTypeName" />
											</td>
											<td>												
												<s:property value="functionName" />
											</td>
											<td>
												<s:property value="functionDesc" />
											</td>
											<td>
												<s:property value="userGroupName" />
											</td>
										</tr>
									</s:iterator>
								</tbody>
								<tfoot>
								</tfoot>
							</table>
						</div>
						
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 mouseclick("info_table2","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
						</script>

					</div>

				</div>
				</s:form>
			
		</div>
	</body>
</html>